import os
from  celery import  Celery
from django.conf import  settings


os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'qq920.settings')

app=Celery('myworker',broker='redis://:123@127.0.0.1:6379/4',backend='redis://:123@127.0.0.1:6379/6')

app.autodiscover_tasks(settings.INSTALLED_APPS)